package FactoryMode

object SingleTest {
  def main(args: Array[String]): Unit = {
    //    val aaLeton = new SingleLeton("aa", 12)
    val aaLeton = SingleLeton.getInstance("aa", 12)
    val bb = SingleLeton.getInstance("bb", 20)
    if (aaLeton == bb) {
      println("==")
      print(bb)
      print(aaLeton)
    }
  }

}
